﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ALDIOrganizer.Properties;

namespace ALDIOrganizer
{
    public static class RotaActionExtended
    {
        public static string GetString(this RotaAction pRotaAction)
        {
            switch (pRotaAction)
            {
                case RotaAction.Create:
                    return Resources.ROTA_ACTION_Create;                    
                case RotaAction.View:
                    return Resources.ROTA_ACTION_View;                    
                case RotaAction.Edit:
                    return Resources.ROTA_ACTION_Edit;
                case RotaAction.None:                    
                default:
                    return String.Empty;
            }	
        }
    }
}
